package com.usian.pojo;

import javax.persistence.Id;
import java.io.Serializable;

public class Etc implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private Integer id;
    private String carId;
    private String etcId;
    private Integer money;
    private String userName;
    private Integer lateYear;

    public Etc() {
    }

    public Etc(Integer id, String carId, String etcId, Integer money, String userName, Integer lateYear) {
        this.id = id;
        this.carId = carId;
        this.etcId = etcId;
        this.money = money;
        this.userName = userName;
        this.lateYear = lateYear;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId;
    }

    public String getEtcId() {
        return etcId;
    }

    public void setEtcId(String etcId) {
        this.etcId = etcId;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getLateYear() {
        return lateYear;
    }

    public void setLateYear(Integer lateYear) {
        this.lateYear = lateYear;
    }

    @Override
    public String toString() {
        return "Etc{" +
                "id=" + id +
                ", carId='" + carId + '\'' +
                ", etcId='" + etcId + '\'' +
                ", money=" + money +
                ", userName='" + userName + '\'' +
                ", lateYear=" + lateYear +
                '}';
    }
}
